package cn.shop.core.service.impl;

import cn.shop.core.bean.ConsigneeManagement;
import cn.shop.core.dao.ConsigneeManagementDAO;
import cn.shop.core.service.ConsigneeManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2016/8/26.
 */
@Service
public class ConsigneeManagementServiceImpl implements ConsigneeManagementService {
    @Autowired
    private ConsigneeManagementDAO cmDAO;
    public List<Map> getlist(ConsigneeManagement cm) {
        return cmDAO.getList(cm);
    }

    public void add(ConsigneeManagement cm) {
        cmDAO.add(cm);
    }

    public void update(ConsigneeManagement cm) {
        cmDAO.update(cm);
    }

    public void delete(ConsigneeManagement cm) {
        cmDAO.delete(cm);
    }

    public Map getInfo(ConsigneeManagement cm) {
        return cmDAO.getInfo(cm);
    }
}
